package com.hgyc.mom.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 文件配置信息
 * @author fwj
 * @since 2025/4/24
 */
@Configuration
@ConfigurationProperties(prefix = "mom.upload")
public class FileProperties {

    //上传服务 local or minio
    private String strategy;

    //本地上传地址
    private String uploadPath;

    //文件访问地址
    private String publicUrl;

    public String getStrategy() {
        return strategy;
    }

    public void setStrategy(String strategy) {
        this.strategy = strategy;
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getPublicUrl() {
        return publicUrl;
    }

    public void setPublicUrl(String publicUrl) {
        this.publicUrl = publicUrl;
    }
}
